﻿using Microsoft.Owin.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OwinSelfHostWithWebApi
{
    class Program
    {
        static void Main(string[] args)
        {
            var url = "http://localhost:8080/";
            var startOpts = new StartOptions(url)
            {

            };
            using (WebApp.Start<Startup>(startOpts))
            {
                Console.WriteLine("Server run at " + url + " , press Enter to exit.");
                Console.WriteLine("localhost:8080/api/get/name?value=a");
                Console.WriteLine("localhost:8080/api-v2/get/name?value=a");
                Console.WriteLine("localhost:8080/api-v3/get/name?value=a");
                Console.ReadLine();
            }
        }
    }
}
